<!DOCTYPE html>
<html>
	<!DOCTYPE html>
	<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>湖南中医药大学心理在线测试平台</title>
		<link rel="stylesheet" href="../../layui/css/layui.css">
		<link rel="stylesheet" href="../../layui/css/index.css">
	</head>
	
	<script id="teacherList" type="text/html">
		<div class="layui-row layui-col-space15">
		{{# layui.each(d.data, function(index, data){ }}
			<div class="layui-col-md6">
				<div class="layui-card">
					<div class="layui-card-header">{{data.name}}</div>
					<div class="layui-card-body">
						荣誉：{{data.honour}}<br/> 优势：{{data.strength}}
						<br/> 空闲时间(每周) ：{{data.freeTime}}
						<br/>
						<input type="button" onclick="layui.application({{data.id}})" class="layui-btn layui-btn-sm" id="teacher{{data.id}}" name="application" style="font-size: 10px;color: #FFFFFF;" value="向我预约？"></input>
					</div>
				</div>
			</div>
		{{# }); }}	
		</div>
	
	</script>
	
	<script id="responseList" type="text/html">
		<div class="layui-row layui-col-space15">
			{{# layui.each(d.data, function(index, data){ }}
			<div class="layui-col-md6">
				<div class="layui-card">
					<div class="layui-card-header">回复信息</div>
					<div class="layui-card-body">
						{{data.message}}<br/>
						<br/>
						<input type="button" onclick="layui.delete({{data.id}})" class="layui-btn layui-btn-sm" name="application" style="font-size: 4px;color: #FFFFFF;" value="删除信息"></input>
					</div>
				</div>
			</div>
			{{# }); }}
		</div>
	</script>
	<body class="layui-layout-body">
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<div class="layui-logo">
					<a href="index.html"> <img src="../../img/logo.png" width="50%" /></a>
				</div>
				<!-- 头部区域（可配合layui已有的水平导航） -->
				<ul class="layui-nav layui-layout-left">
					<li class="layui-nav-item ">
						<a href="exam.html">在线测试</a>
					</li>
					<li class="layui-nav-item">
						<a href="score.html">成绩查询</a>
					</li>
					<li class="layui-nav-item layui-this">
						<a href="application.html">在线预约</a>
					</li>
					<li class="layui-nav-item">
						<a href="javascript:;">其它系统</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="">校长信箱</a>
							</dd>
							<dd>
								<a href="">心理辅导</a>
							</dd>
							<dd>
								<a href="">教师客户端</a>
							</dd>
						</dl>
					</li>
				</ul>

				<ul class="layui-nav layui-layout-right" id="studentInfoView">

				</ul>

				<script id="studentInfo" type="text/html">
					<li class="layui-nav-item">
						<a href="javascript:;">
							<img src="../../img/head/head1.jpg" class="layui-nav-img">
							<font id="studentNo">{{d.name}}</font>
						</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="person.html">修改密码</a>
							</dd>
						</dl>
						<li class="layui-nav-item" lay-filter="navfilter">
							<a href="logout.html">退出登录</a>
						</li>
				</script>
			</div>
			
		<div class="layui-body">
				<!-- 内容主体区域 -->
				<div style="padding: 15px;">
					<!--实验布局-->
					<fieldset class="layui-elem-field layui-field-title" style="margin-top: 5px;">
						<legend>在线预约</legend>
					</fieldset>
					<div class="layui-tab">
						<ul class="layui-tab-title ">
							<li class="layui-this">教师列表</li>
							<li class="">预约信息</li>
						</ul>
						<div class="layui-tab-content" style="background-color:  #F2F2F2;">
					
							<!--在线预约-->
							<div class="layui-tab-item layui-show">
					
								<div id="teacherListView">
					
								</div>
					
							</div>
							<div class="layui-tab-item">
					
								<div id="responseListView">
					
								</div>
					
							</div>
						</div>
					</div>
					<!--实验结束-->
				
		</div>
				
	<div class="layui-footer">
		<!-- 底部固定区域 -->
		© hnzyydx.autowired.cn 湖南中医药大学版权所有
	</div>
</body>
	
	<script id="date" type="text/html">
		<div class="layui-row">
			<div class="layui-form-item" style="padding-top: 10px;padding-right: 40px;">
				<label class="layui-form-label">输入框</label>
				<div class="layui-input-inline">
					<input type="text" name="" id="dateOption" placeholder="请选择日期"  autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		
		<div id="dateSelectView" align="center"></div>
	</script>
	<script id="dateSelect" type="text/html">
		{{# if(d.code==0){ console.log(d)}}
		<form class="layui-form-item" style="padding-top: 10px;padding-right: 90px;padding-bottom: 20px;" lay-filter="freeTimeForm">
			<div class="layui-form-item" >
				<div class="layui-input-block">
				{{# if(d.data.time8to9 == 0){ }}
				<div>	
					<input type="radio" name="freeTime" value="time8to9" />
					<font>08:00~09:00</font>
				</div>
				{{# }else{ }}
				<div>
					<input type="radio" name="freeTime" disabled="disabled" value="time8to9" />
					<font>08:00~09:00</font>
				</div>
				{{# } }} 
				
				{{# if(d.data.time9to10 == 0){ }}
				<div>
					<input type="radio" name="freeTime" value="time9to10" />
					<font>09:00~10:00</font>
				</div>
				{{# }else{ }}
				<div>
					<input type="radio" name="freeTime" disabled="disabled" />
					<font>09:00~10:00</font>
				</div>
				{{# } }} 
				
				{{# if(d.data.time10to11 == 0){ }}
				<div>
					<input type="radio" name="freeTime" value="time10to11" />
					<font>10:00~11:00</font>
				</div>
				{{# }else{ }}		
				<div>
					<input type="radio" name="freeTime" disabled="disabled" value="time10to11" />
					<font>10:00~11:00</font>
				</div>
				{{# } }} 
				{{# if(d.data.time11to12 == 0){ }}
				<div>
					<input type="radio" name="freeTime" value="time11to12" />
					<font>11:00~12:00</font>
				</div>
				{{# }else{ }}
				<div>
					<input type="radio" name="freeTime" disabled="disabled" value="time11to12" />
					<font>11:00~12:00</font>
				</div>
				{{# } }}
				{{# if(d.data.time14to15 == 0){ }}
				<div>
					<input type="radio" name="freeTime" value="time14to15" />
					<font>14:00~15:00</font>
				</div>
				{{# }else{ }}
				<div>
					<input type="radio" name="freeTime" disabled="disabled" value="time14to15" />
					<font>14:00~15:00</font>
				</div>
				{{# } }}		
				{{# if(d.data.time15to16 == 0){ }}
				<div>
					<input type="radio" name="freeTime" value="time15to16" />
					<font>15:00~16:00</font>
				</div>
				{{# }else{ }}
				<div>
					<input type="radio" name="freeTime" disabled="disabled" value="time15to16" />
					<font>15:00~16:00</font>
				</div>
				{{# } }}
				{{# if(d.data.time16to17 == 0){ }}
				<div>
					<input type="radio" name="freeTime" value="time16to17" />
					<font>16:00~17:00</font>
				</div>
				{{# }else{ }}
				<div>
					<input type="radio" name="freeTime" disabled="disabled" value="time16to17" />
					<font>16:00~17:00</font>
				</div>
				{{# } }}
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block">
				<input type="hidden" name="teacherId" value="{{d.data.teacherId}}" />
				<button class="layui-btn layui-btn-lg" lay-filter="freeTimeSubmit" lay-submit="">确认预约</button>
				</div>
			</div>
		</form>
		{{# }else{ }}
			<div align="center">
				<span style="color: red; margin-top: 20px;" > <h3>今日非可预约时段 </h3></span>
			</div>			
		{{# } }}
		
		
	
	
	</script>
	<script src="../../layui/layui.js"></script>
	<script src="../../js/page/application.js"></script>

</html>